<template>
  <div>
    <tabbar ref="mytabbar" v-show="this.$store.state.isTabBarshow"></tabbar>
   <section>
    <router-view></router-view>
   </section>
  </div>
</template>
<script>
import tabbar from '@/components/Tabbar'
import Vue from 'vue'
import Vant from 'vant'
import 'vant/lib/index.css'

Vue.use(Vant)

export default {
  components: {
    tabbar
  },
  mounted () {
    // 一种获取节点高度的方法
    // console.log(this.$refs.mytabbar.$el.offsetHeight)
  }
}
</script>
<style>
*{
    padding:0;
    margin: 0;
}

html,body{
    font-size: 16px;
    height: 100%;
  }
   ul,li{
    list-style: none;
  }
  section{
    padding-bottom: 3.0625rem;
  }

</style>
